--牌桌详情
module("NetWork.Action.SBNetModule",package.seeall)
local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
local NetCmdActionBase = require("NetWork.Action").NetCmdActionBase
local DianZiMessage_pb = require("Protol.dianZiMessage_pb")
local SBGameHost = require("Module.GameModule.SBGameHost").SBGameHost

local cmdSet= require("NetWork.NetCmdSet").CmdSet


--牌桌详情
cmdSet[10001] =   function (bytes)
 
    --200*5*10  1w
    local TableInfoRes =DianZiMessage_pb.TableInfoRes()
    TableInfoRes:ParseFromString(bytes)

    local JBCModule = require("Module.JBCModule").JBCModule
	JBCModule:JoinJbSm(TableInfoRes)
     
end  

--下注广播
cmdSet[10004]=function (bytes)
    local BetCast=DianZiMessage_pb.BetCast()
    BetCast:ParseFromString(bytes)
    SBGameHost:BetCast(BetCast)
end
--结果广播
cmdSet[10005]=function (bytes)
    local ResultCast=DianZiMessage_pb.ResultCast()
    ResultCast:ParseFromString(bytes)
    SBGameHost:ResultCast(ResultCast)
end
 

--桌状态变化
cmdSet[10002]=function (bytes)
    local TableStateCast=DianZiMessage_pb.TableStateCast()
    TableStateCast:ParseFromString(bytes)
    SBGameHost:TableStateCast(TableStateCast)
end



 